package com.smh.service.Impl;

import com.smh.dao.UserDao;
import com.smh.model.UserInfo;
import com.smh.service.UserService;
import org.apache.catalina.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired//依赖注入
    private UserDao userDao;


    @Override
    public void add(UserInfo userInfo) {
        userDao.add(userInfo);
    }

    @Override
    public List<UserInfo> search() {
        return userDao.search();
    }
}
